load ListBlock,References,ResetTabs,INDIPanes,SourceButtons

! -------------- Start Template -----------------
GoSub INDIPanes,"Notes"
GoSub ResetTabs,0

! --------- NOTEs, SOURs, and _LOGs -----------
#numSOURs=@count.SOUR
gosub References,"_LOG"

! --------- Attach links
newline
cell GroupBox,local("Attach")
  width -1
  newline -#lineSkip-3
  #lineSkip=2
  Show NOTE
  Show SOUR
  Show _LOG
  GoSub SourceButtons,"true",#numSOURs
  newline 3
  hskip 2
EndGroup
#lineSkip=#lineSkip$

! --------- Other Multimedia
cell GroupBox,local("Event and Attribute Notes and Sources")
  width -1
  newline -9
  #startVH=#vpos$+#hpos$
  ShowAll INDIEvents "Sources"
  ShowAll INDIOrdinances "Sources"
  ! RESI are in attributes, but this ShowAll gets them first to match
  ! the event and attribute pane order
  ShowAll RESI "Sources"
  ShowAll INDIAttributes "Sources"
  if #startVH=#vpos$+#hpos$
    cell static,local("None")
    sizetofit
    set offset 3
  endif
EndGroup

hideexcess

